<!DOCTYPE html>
<html>
  <head>
     <meta http-equiv="Content-Type"
          content="text/html; charset=UTF-8">
    <title>Hello World!</title>
  </head>
  <body>
   
	<script>
		
		
		let youdaoWords = {
		  "wordbook": {
			"item": [
			  {
				"word": "distinct",
				"trans": "adj. 明显的；独特的；清楚的；有区别的",
				"phonetic": "[dɪ'stɪŋkt]",
				"tags": "word",
				"progress": "1"
			  },
			  {
				"word": "artifact",
				"trans": "n. 人工制品；手工艺品",
				"phonetic": "['ɑrtə,fækt]",
				"tags": "word",
				"progress": "1"
			  },
			  {
				"word": "artifacts",
				"trans": "n. 史前古器物；人工产品",
				"tags": "word",
				"progress": "1"
			  },
			  {
				"word": "extract",
				"trans": "vt. 提取；取出；摘录；榨取n. 汁；摘录；榨出物；选粹",
				"phonetic": "['ɛkstrækt]",
				"tags": "word",
				"progress": "1"
			  }
			]
		  }
		}
		let words = youdaoWords.wordbook.item
		function showWord(index){
		let word = words[index % words.length]
			document.title = word.word //英文单词
			document.body.innerHTML =word.word+"  "+word.trans
		}
		let index = 0
		showWord(index++)
		setInterval(function(){
			showWord(index++)
			
		},30*60*1000)
	</script>
  </body>
</html>